package com.sh.data.engine.domain.api.model.domain.rest;

import com.sh.data.engine.domain.api.model.domain.DataApiRegisterDomain;
import lombok.Data;

/**
 * @author: zigui.zdf
 * @description:
 * @date: 2021/3/9 10:30
 */
@Data
public class DataApiRegisterTaskConfigInfoDomain extends DataApiConfigInfoDomain {
    private String httpRequestMethod;

    // http url
//    @NotNull
//    @ApiModelProperty(value = "路径", required = true)
//    @Pattern(regexp = "^https?://.*", message = "url非法")
    private String url;

    // 认证参数
//    @Valid
//    @NotNull
//    @ApiModelProperty(value = "请求认证", required = true)
    private DataApiRegisterDomain.ApiHttpAuthDomain apiHttpAuthDomain;

    // 请求头
//    @Valid
//    @NotNull
//    @ApiModelProperty(value = "请求头")
    private DataApiRegisterDomain.ApiHttpRequestHeaderDomain apiHttpRequestHeaderDomain;

    // 请求体
//    @Valid
//    @NotNull
//    @ApiModelProperty(value = "请求体")
    private DataApiRegisterDomain.ApiHttpRequestBodyDomain apiHttpRequestBodyDomain;
}
